package com.xbongbong.paas.handle;

import com.xbongbong.paas.field.FieldAttrEntity;
import com.xbongbong.paas.pojo.dto.FormDataListDTO;
import com.xbongbong.paas.pojo.vo.PaasFormDataEsListVO;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.weblist.pojo.ListOptionPackagePojo;
import com.xbongbong.saas.enums.business.PaymentEnum;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class PaymentOptionHandle extends AbstractOptionHandle {
    @Override
    public void setOptionsInExplain(FormDataListDTO formDataListDTO, List<FieldAttrEntity> explainList, PaasFormDataEsListVO paasFormDataEsListVO) throws XbbException {
    }

    @Override
    public void setOptionsInData(FormDataListDTO formDataListDTO, PaasFormDataEsListVO paasFormDataEsListVO) throws XbbException {
    }

    @Override
    public ListOptionPackagePojo getFirstOptionData(FormDataListDTO formDataListDTO, PaasFormDataEsListVO paasFormDataEsListVO) throws XbbException {
        // ‘归’标签
        ListOptionPackagePojo listOptionPackagePojo = new ListOptionPackagePojo();
        listOptionPackagePojo.setArchivedTag(PaymentEnum.PAYMENT_NO.getAttr() + "Tag");
        return listOptionPackagePojo;
    }
}
